export default [
  {
    path: 'user',
    component: { render: h => h('router-view') },
    meta: { title: '用户中心', icon: 'fa fa-user', hidden: true },
    children: [
      {
        path: '',
        redirect: 'info',
      },
      {
        path: 'company',
        name: 'userCompany',
        component: () =>
          import(/* webpackChunkName: "credit-user" */ '@/credit/views/city/user/Company.vue'),
        meta: { title: '单位信息' },
      },
      {
        path: 'user_org',
        name: 'userOrg',
        component: () =>
          import(/* webpackChunkName: "credit-user" */ '@/credit/views/county/user/Org.vue'),
        meta: { title: '组织结构' },
      },
      {
        path: 'info',
        name: 'userInfo',
        component: () =>
          import(/* webpackChunkName: "credit-user" */ '@/credit/views/city/user/Info.vue'),
        meta: { title: '个人信息' },
      },
      {
        path: 'pwd',
        name: 'userPassword',
        component: () =>
          import(/* webpackChunkName: "credit-user" */ '@/credit/views/city/user/Password.vue'),
        meta: { title: '密码修改' },
      },
    ],
  },
  {
    path: '/bi/:id',
    component: () => import(/* webpackChunkName: "main" */ '@/components/Bi.vue'),
    meta: { title: 'BI', layout: false, hidden: true },
  },
]
